CONTENTS | INDEX | PREV | NEXT
 sqrt
 fsqrt 

 NAME
  sqrt   - return the square root of a double quantity
  fsqrt  - return the square root of a float quantity

 SYNOPSIS
  #include <math.h>

  double a = sqrt(b);
  double b;

  float  c = fsqrt(d);
  float  d;

 FUNCTION
  Returns the square root of a floating point quantity

 EXAMPLE
  /*
   *  compile with the math library -lm
   */

  #include <math.h>
  #include <stdio.h>

  main()
  {
      {
      double a = sqrt(0.25);
      printf("sqrt 0.25 = %lfn", a);     /*  0.5000  */
      }
      {                       /*  less accuracy   */
      float a = fsqrt(0.25);
      printf("sqrt 0.25 = %lfn", (double)a);
      }
      return(0);
  }

 INPUTS
  double b;   double floating point value
  float  d;   float  floating point value

 RESULTS
  double a;   result double floating point value
  float  c;   result float  floating point value

 SEE ALSO
  acos, asin, atan, cos, exp, fabs, log, log10, pow, sin, sqrt, tan
  facos, fasin, ...